package com.isoft.data.dao;

import com.isoft.data.xml.Airl;
import com.isoft.data.xml.AirlDfltArpt;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 张子识
 * @version 1.0
 */
@Mapper
public interface AirlDao {
    @Insert("INSERT AIRPORT.AIRL (SEQN,DDTM,FLID,FIDE,FFID) " +
            "VALUES(#{airl.meta.seqn},#{airl.meta.ddtm}," +
            "#{airl.airl.flid},#{airl.airl.fide},#{airl.airl.ffid});")
    void airlAdd(@Param("airl")Airl airl);
    @Insert("INSERT AIRPORT.AIRL_ARPT(SEQN,DDTM,APNO,APCD,FPTT,FETT,FRTT,FPLT,FELT,FRLT,APAT) " +
            "VALUES (#{airl.meta.seqn},#{airl.meta.ddtm}," +
            "#{dflt.apno},#{dflt.apcd},#{dflt.fptt},#{dflt.fett},#{dflt.frtt}," +
            "#{dflt.fplt},#{dflt.felt},#{dflt.frlt},#{dflt.apat});")
    void airlArptAdd(@Param("airl") Airl airl, @Param("dflt")AirlDfltArpt dflt);
}
